home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- if count(the windowList) = 0 then
- clearGlobals()
- case #re of
- #a:
- fn = "African Development Foundation"
- #al:
- fn = "alabama"
- #am:
- fn = "amtrak"
- #b:
- fn = "baker v. carr"
- #e:
- fn = "Everson v. board of education"
- #m:
- fn = "Miranda v. Arizona"
- #re:
- fn = "Request for a Declaration of War"
- #w:
- fn = "Wallace v. Jaffree"
- #zz:
- fn = "Alien and Sedition Act"
- end case
- init(fn && " (dummy title)", fn)
- end if
- end
-
- on CloseMIAW
- global gDBTextVarList, gForgetList
- go(the frame + 1)
- MyObj = getaProp(gDBTextVarList, GetObjProp())
- condemn(MyObj)
- deleteProp(gDBTextVarList, GetObjProp())
- append(gForgetList, the activeWindow)
- end
-
- on changeStates
- the itemDelimiter = ":"
- repeat with i = 98 to 147
- mem = member(i, "DBText.CST")
- mem.alignment = "left"
- mem.font = "Helvetica"
- mem.fontSize = 12
- mem.fontStyle = "plain"
- mem.rect = rect(0, 0, 424, mem.height)
- end = the number of lines in field i of castLib "DBText.CST"
- repeat with j = 1 to end
- if line j of field i of castLib "DBText.CST" contains ":" then
- words = the number of words in item 1 of line j of field i of castLib "DBText.CST"
- repeat with k = 1 to words
- theWord = word k of line j of field i of castLib "DBText.CST"
- if getOne(["of", "per"], theWord) = 0 then
- letter = translate(char 1 of theWord)
- put letter into char 1 of word k of line j of field i of castLib "DBText.CST"
- end if
- end repeat
- set the textStyle of item 1 of line j of field i of castLib "DBText.CST" to "bold"
- end if
- end repeat
- end repeat
- end
-
- on changeOrgs
- the itemDelimiter = ":"
- repeat with i = 290 to 393
- mem = member(i, "DBText.CST")
- if mem.type = #field then
- mem.alignment = "left"
- mem.font = "Helvetica"
- mem.fontSize = 12
- end if
- end repeat
- end
-
- on changeReadings
- repeat with i = 411 to 471
- mem = member(i, "DBText.CST")
- if mem.type = #field then
- mem.alignment = "left"
- mem.font = "Helvetica"
- mem.fontSize = 12
- mem.fontStyle = "plain"
- set the textStyle of line 1 of field i of castLib "DBText.CST" to "bold"
- end if
- end repeat
- end
-
- on changeActs
- repeat with i = 494 to 587
- mem = member(i, "DBText.CST")
- if mem.type = #field then
- mem.alignment = "left"
- mem.font = "Helvetica"
- mem.fontSize = 12
- mem.fontStyle = "plain"
- mem.rect = rect(0, 0, 424, mem.height)
- end if
- end repeat
- end
-
- on changeTextType
- repeat with i = 1 to 999
- mem = member(i, "DBText.CST")
- if mem.type = #field then
- mem.boxType = #fixed
- mem.editable = 0
- end if
- end repeat
- end
-